/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package officeboost.entity.form;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.jbpm.api.ExecutionService;

/**
 *
 * @author wangfrank
 */
//@Entity
public class CarBookingForm extends AbstractForm implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    private String departmentOrTeacher;
    private String passenger;
    private String phone_num;
    private int passernger_num;
    private String date;
    private String reason;
    private String detail;
    private String departure;
    private String destination;
    private String back;
    private String opinion;
    private int status;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getBack() {
        return back;
    }

    public void setBack(String back) {
        this.back = back;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDepartmentOrTeacher() {
        return departmentOrTeacher;
    }

    public void setDepartmentOrTeacher(String departmentOrTeacher) {
        this.departmentOrTeacher = departmentOrTeacher;
    }

    public String getDeparture() {
        return departure;
    }

    public void setDeparture(String departure) {
        this.departure = departure;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public String getPassenger() {
        return passenger;
    }

    public void setPassenger(String passenger) {
        this.passenger = passenger;
    }

    public int getPassernger_num() {
        return passernger_num;
    }

    public void setPassernger_num(int passernger_num) {
        this.passernger_num = passernger_num;
    }

    public String getPhone_num() {
        return phone_num;
    }

    public void setPhone_num(String phone_num) {
        this.phone_num = phone_num;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CarBookingForm)) {
            return false;
        }
        CarBookingForm other = (CarBookingForm) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "officeboost.entity.form.BookingCarForm[ id=" + id + " ]";
    }

    @Override
    public String apply(ExecutionService es) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Long theId() {
	throw new UnsupportedOperationException("Not supported yet.");
    }
}
